<template>
	<!-- video全屏预览 -->
	<view class="videofull" v-show="playshow">
		<view class="i-close" @click="fnCloseFull">
			<vs-icon type="icon-fork" size="12"></vs-icon>
		</view>
		<video 
		:initial-time="0"
		:autoplay="true"
		class="myvideo" :src="src"></video>
	</view>
	<!-- <view v-show="playshow">
		<video
		:autoplay="true"
		class="myvideo" :src="src"></video>
	</view> -->
</template>

<script>
	export default{
		props:{
			src:{},
			playshow:{
				type:Boolean,
				default:false
			}
		},
		data(){
			return{
				
			}
		},
		methods:{
			fnCloseFull(){
				this.$emit('close',{})
			}
		}
	}
</script>

<style lang="scss">
	
	.videofull{
		width: 100%;
		height: 100%;
		background: red;
		position: fixed;
		top: 0;
		left: 0;
		.myvideo{
			width: 100%;
			height: 100%;
		}
		.i-close{
			width: 30px;
			height: 30px;
			position: fixed;
			right: 20px;
			top: 20px;
			display: flex;
			align-items: center;
			justify-content: center;
			border-radius: 100%;
			background-color:rgba(255,255,255,0.5);
			color: #fff;
			z-index: 99;
		}
	}
</style>
